<div class="admin-content">
    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">会员</strong> /
            <small>会员审核</small>
        </div>
    </div>
<!--     <div class="am-cf am-padding">
        <a><small>用户查找</small></a>
    </div> -->
    <div class="am-g">
        <div class="am-u-sm-12 am-u-md-6">
           <!--  <div class="am-btn-toolbar">
                <div class="am-btn-group am-btn-group-xs">
                    <a ui-sref="usercenter.useradd" class="am-btn am-btn-primary">添加用户</a>
                </div>
            </div> -->
        </div>

        <div class="am-u-sm-12 am-u-md-3">
            <!-- <div class="am-input-group am-input-group-sm">
                <input type="text" class="am-form-field" ng-model="id" placeholder="请输入要查询的用户">
              <span class="am-input-group-btn">
                <button class="am-btn am-btn-default" type="button" ng-click="selectbyid(id)">搜索</button>
              </span>
            </div> -->
        </div>
    </div>
    <table id="tb" class="am-table am-table-striped am-table-hover table-main">
        <thead>
        <tr>
            <th class="table-title">用户id</th>
            <th class="table-set">用户账号</th>
            <th class="table-title">用户电话</th>
            <th class="table-type">用户昵称</th>
            <th class="table-date am-hide-sm-only">认证照片</th>
            <!-- <th class="table-author am-hide-sm-only">用户等级</th> -->
            <th class="table-set">编辑</th>
        </tr>
        </thead>
        <tbody>
        <tr  dir-paginate="user in users | filter:q | itemsPerPage: 8">
            <td>{{user.userid}}</td>
            <td>{{user.name}}</td>
            <td>{{user.phone}}</td>
            <td>{{user.nickname}}</td>
            <td ><div ng-repeat="image in user.images" style="margin-left: -35px"><a href="#" ><img class='obj' ng-src="{{image}}"/></a></div></td>
            <!-- <td class="am-hide-sm-only">{{user.sign | userTypeFilter}}</td> -->
            <td>
                <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                        <button class="am-btn am-btn-default am-btn-xs am-text-secondary"
                                ng-click="update(user,2,21)"><span
                                class="am-icon-pencil-square-o">审核通过</span></button>
                        <!--<button class="am-btn am-btn-default am-btn-xs am-hide-sm-only"><span class="am-icon-copy"></span> 复制</button>-->
                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"confirmed-click="update(user,0,16)" ng-confirm-click="确定审核失败这个用户 '{{user.name}}'"><span class="am-icon-trash-o">审核失败</span></button>
                    </div>
                </div>
            </td>

        </tr>
        </tbody>
    </table>
    <div class="am-cf">
        <div class="text-center">
            <dir-pagination-controls boundary-links="true" on-page-change="pageChangeHandler(newPageNumber)"
                                     template-url="tpls/pagination/dirPagination.tpl.html"></dir-pagination-controls>
        </div>
    </div>
</div>